# 输入10个数字，然后计算平均值

N = 10  # 定义数字个数
sum = 0  # 存储所有数字的和
count = 0  # 已经输入的数字个数
print("please input 10 numbers:")
while count < N:
    number = float(input())
    sum = sum + number
    count = count + 1
average = sum / N
print("N = {}, Sum = {}".format(N, sum))
print("Average = {:.2f}".format(average))
